public class InnerClassExercise02 {
    public static void main(String[] args) {
        cellPhone cellPhone = new cellPhone();
        cellPhone.alarmclock(new Bell() {
            @Override
            public void ring() {
                System.out.println("懒猪起床了");
            }
        });
        cellPhone.alarmclock(new Bell() {
            @Override
            public void ring() {
                System.out.println("小伙伴上课了");
            }
        });
    }
}
interface Bell{
    void ring();
}
class cellPhone{
    public void alarmclock(Bell bell){
        bell.ring();
    }
}
